<%@ page language="java" contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="bo.MilestoneBO"%>
<%@page import="com.google.gson.Gson"%>
<%@ page 
	import="java.io.File,java.io.FilenameFilter,java.util.Arrays"%>
<%

Gson gson = new Gson();

List<MilestoneBO> mBOList= new ArrayList<MilestoneBO>();
MilestoneBO mBO = new MilestoneBO();
mBO.setMileStoneID("1");
mBO.setMileStoneName("ATS");
mBO.setMileStoneXML("<ATSXML><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k><rot>data</rot><k>hhh</k></ATSXML>");
mBOList.add(mBO);
MilestoneBO mBO1 = new MilestoneBO();
mBO1.setMileStoneID("2");
mBO1.setMileStoneName("OBP");
mBO1.setMileStoneXML("OBPXML");
mBOList.add(mBO1);
MilestoneBO mBO2 = new MilestoneBO();
mBO2.setMileStoneID("3");
mBO2.setMileStoneName("FOC");
mBO2.setMileStoneXML("FOCXML");
mBOList.add(mBO2);

MilestoneBO mBO3 = new MilestoneBO();
mBO3.setMileStoneID("4");
mBO3.setMileStoneName("SOCN");
mBO3.setMileStoneXML("SOCNXML");
mBOList.add(mBO3);

String mboJSON = gson.toJson(mBOList);
System.out.println("mboJSON ="+mboJSON);
out.write(mboJSON);

%>